package model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name = "ITEM_ESTOQUE")
@Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name = "TIPO")
public abstract class ItemEstoque implements Serializable {

	private static final long serialVersionUID = -3867116504296026262L;
	@Id
	@Column(name="ITES_ID")
	@GeneratedValue
	private Integer id;

	@Column(name = "ITES_NR_NUMERO_PARTE")
	private int numeroDeParte;

	public Integer getId() {
		return id;
	}

	public int getNumeroDeParte() {
		return numeroDeParte;
	}

	public void setNumeroDeParte(int numeroDeParte) {
		this.numeroDeParte = numeroDeParte;
	}

	public void setQuantidade() {

	}

}
